// 订单API
const install = (Vue, vm) => {
	// 获取订单列表
	let getOrderList = (data) => vm.$zx.post(`/api/dataStat/transTrend`, data);
	let merchantActiveTrend = (data) => vm.$zx.post(`/api/dataStat/merchantActiveTrend`, data);
	let merchantCountList = (data) => vm.$zx.post(`/api/activityCount/merchantCountList`, data);
	let incomeTrend = (data) => vm.$zx.post(`/api/dataStat/incomeTrend`, data);
	let sumAccountDetail = (data) => vm.$zx.post(`/api/myInfo/sumAccountDetail`, data);
	let transStatByDate = (data) => vm.$zx.post(`/api/dataStat/transStatByDate`, data); //交易统计
	let transStat = (data) => vm.$zx.post(`/api/dataStat/transStat`, data); //交易统计
	let listAccountDetail = (pageNo, pageSize, data) => vm.$zx.post( `/api/myInfo/listAccountDetail/${pageNo}/${pageSize}`, data); //交易明细
	let queryMerTrans = (merchantNo) => vm.$zx.post( `/api/merchantInfo/queryMerTrans/${merchantNo}`);
	let queryMerInfo = (merchantNo, sourcePage) => vm.$zx.get( `/api/merchantInfo/queryMerInfo/${merchantNo}/${sourcePage}`);
	let transOrderQuery = (pageNo, pageSize, data) => vm.$zx.post( `/api/transOrder/queryPage/${pageNo}/${pageSize}`, data);
	let transOrderSearchParam = () => vm.$zx.post( `/api/transOrder/searchParam`);
	let transOrderDetail = (orderNo) => vm.$zx.post( `/api/transOrder/transOrderDetail/${orderNo}`);
	vm.$zx.order_api = {
		getOrderList,
		merchantActiveTrend,
		merchantCountList,
		incomeTrend,
		sumAccountDetail,
		transStatByDate,
		transStat,
		listAccountDetail,
		queryMerTrans,
		queryMerInfo,
		transOrderQuery,
		transOrderSearchParam,
		transOrderDetail
	};
};

export default {
	install,
};